Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
prismarine-entity
Advanced tools
Represent a minecraft entity
const Entity = require("prismarine-entity")('1.8.9')
const entity = new Entity(0)
console.log(entity)
Entities represent players, mobs, and objects.
Choices:
player
mob
object
global
- lightningorb
- experience orb.other
- introduced with a recent Minecraft update and not yet recognized or used by a third-party modIf the entity type is player
, this field will be set.
If the entity type is mob
, this field will be set.
Field set for mob and object. A long name in multiple words.
Field set for mob and object. The numerical type of the entity (1,2,...)
Field set for mob and object. The kind of entity (for example Hostile mobs, Passive mobs, NPCs).
Field set for mob and object. A short name for the entity.
If the entity type is object
, this field will be set.
If the entity type is orb
, this field will be how much experience you
get from collecting the orb.
Version dependent.
1.8 Layout:
0
- held item1
- shoes2
- legging3
- torso4
- head1.9 and later:
0
- held item1
- off-hand2
- shoes3
- legging4
- torso5
- headEquivalent to entity.equipment[0]
.
See http://wiki.vg/Entities#Entity_Metadata_Format for more details.
Entity that this entity is riding on
Entity that is riding on this entity
The health of the player, default: 20
The food of the player, default: 20
Whether or not the entity is elytra flying.
The player
returns a prismarine-chat
ChatMessage object for the name of the entity or null if there isn't one
returns a prismarine-item
Item object for the dropped item, if this is a dropped item, or it will return null
.heldItem
(#73) (thanks @szdytom)FAQs
Represent a minecraft entity
The npm package prismarine-entity receives a total of 4,956 weekly downloads. As such, prismarine-entity popularity was classified as popular.
We found that prismarine-entity demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.